﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Jy123.Web.Manage.User.Guess
{
    public partial class GuessItem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["id"]))
                {
                    int id = Convert.ToInt32(Request.QueryString["id"]);
                    ShowItemList(id);
                }   
            }
        }

        private void ShowItemList(int id)
        {
            BLL.User_Guess_Item bllItem = new Jy123.BLL.User_Guess_Item();
            Rpt_ItemList.DataSource = bllItem.GetList("FGuess = " + id);
            Rpt_ItemList.DataBind();
        }

        protected string IsRightHtml(object flag)
        {
            
            if (Convert.ToInt32(flag) == 1)
            {
                return "<a href='javascript:' class='btnsty'>正确结果</a>";
            }
            else
            {
                return "";
            }
        }
    }
}
